Skip to main content

ampersandampersand

Type

operator

Summary

Concatenates two strings and inserts a space between them.

Syntax

<string1> && <string2>

Description

Use the && operator to combine two strings with a space between them, for example, to combine two words or phrases. That is, string1 && string2 results in a string consisting of string1, a space, and string2.

Parameters

NameTypeDescription

string1

string

A literal string of characters (delimited with double quotes), or expressions that evaluate to strings.

string2

string

A literal string of characters (delimited with double quotes), or expressions that evaluate to strings.

Examples

put "my" && "house" -- evaluates to "my house"
put field "First" && field "Last" into field "Name"
ask "Enter a name for this card."
set the name of this card to it && "Card"

command: ask, set

constant: space

glossary: character, concatenate, delimit, double quote, evaluate, expression, literal string, operator, string

keyword: it

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?